//---------------------------------------------------------------------------

#ifndef Access_classH
#define Access_classH
#include <vcl.h>
#include "Options.h"
//---------------------------------------------------------------------------
enum UserAction {uaValute, uaSell, uaGet, uaReports, uaPrice, uaAdvPrice, uaOptions, uaAdvOptions, uaOutcome};
class AccessProvider
{
 private:
        __fastcall AccessProvider();
        int Role;
 public:
        static String CodeMD5(String Text);
        TOptions *AllOptions;
        static AccessProvider* __fastcall Get();
        static void __fastcall Done();
        bool __fastcall CanDo(UserAction Act);
        void Login();
        void SetUser()
        {
         Role = 1;
        }
};
#endif
